Skip to content

Add Node constructor with kwargs#520

Merged
hugtalbot merged 5 commits intosofa-framework:masterfrom
bakpaul:25_07_add_constructor_with_kwargs
Sep 1, 2025
Merged

Add Node constructor with kwargs#520
hugtalbot merged 5 commits intosofa-framework:masterfrom
bakpaul:25_07_add_constructor_with_kwargs

Conversation

@bakpaul
Copy link
Contributor

@bakpaul bakpaul commented Jul 17, 2025

Add new python constructor for Node that takes as input a kwargs list of data values and set them at the the object creation.

The method doing the data set is generic and thus could be applied to all the code base.

@hugtalbot hugtalbot merged commit 967804e into sofa-framework:master Sep 1, 2025
4 checks passed
RafaelPalomar pushed a commit to Slicer/SofaPython3 that referenced this pull request Jan 28, 2026
* Add init with kwargs for Node that allow to pass data values as input

* Make a generic function out the code that set data from kwarg so tthis can be applid to all objects

* Add unit test for kwargs

---------

Co-authored-by: Hugo <hugo.talbot@sofa-framework.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants